package cn.zengchen233.dao.impl;

import cn.zengchen233.dao.damain.user;
import cn.zengchen233.dao.dao.UserDao;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class UserDaoImpl implements UserDao {

    //public UserDaoImpl() {
    //    System.out.println("UserDaoImpl创建...");
    //}
    //
    //public void init() {
    //    System.out.println("初始化方法...");
    //}
    //
    //public void destroy() {
    //    System.out.println("销毁方法...");
    //}

    private String username;
    private int age;

    private List<String> list;
    private Map<String, user> map;
    private Properties properties;

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setMap(Map<String, user> map) {
        this.map = map;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void save() {
        //System.out.println(username + "||||||" + age);
        //System.out.println("save money....");
        System.out.println(list);
        System.out.println(map);
        System.out.println(properties);
    }
}
